// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2025
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 8.0.2025.05.10

uniform TextColor
{
    vec4 textColor;
};

layout(location = 0) in vec2 vertexTCoord;
layout(location = 0) out vec4 pixelColor;

uniform sampler2D baseSampler;

void main()
{
    float bitmapAlpha = texture(baseSampler, vertexTCoord).r;
    if (bitmapAlpha > 0.5f)
    {
        discard;
    }
    pixelColor = textColor;
}

